<?php
$this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Login");
$this->breadcrumbs=array(
	UserModule::t("Login"),
);
?>

<h1><?php echo UserModule::t("Login"); ?></h1>

<div class="form">
	<?php echo CHtml::beginForm(); ?>
	<?php echo CHtml::errorSummary($model); ?>
	<table id="connexion">
		<tr>
			<td class="libelleChampConnexion"><?php echo CHtml::activeLabelEx($model,'username'); ?></td>
			<td class="separateur">:</td>
			<td class="champConnexion"><?php echo CHtml::activeTextField($model,'username') ?></td>
		</tr>
		<tr>
			<td class="libelleChampConnexion"><?php echo CHtml::activeLabelEx($model,'password'); ?></td>
			<td class="separateur">:</td>
			<td class="champConnexion"><?php echo CHtml::activePasswordField($model,'password') ?></td>
		</tr>
		<tr>
			<td colspan="3"><?php echo CHtml::link(UserModule::t("Register"),$urlRegistration); ?> | <?php echo CHtml::link(UserModule::t("Lost Password?"),Yii::app()->getModule('user')->recoveryUrl); ?></td>
		</tr>
		<tr>
			<td colspan="3"><?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>&nbsp;<?php echo CHtml::activeLabelEx($model,'rememberMe'); ?></td>
		</tr>
		<tr>
			<td class="boutonConnexion" colspan="3"><?php echo CHtml::submitButton(UserModule::t("Login")); ?></td>
		</tr>
	</table>
<?php echo CHtml::endForm(); ?>
</div><!-- form -->


<?php
$form = new CForm(array(
    'elements'=>array(
        'username'=>array(
            'type'=>'text',
            'maxlength'=>32,
        ),
        'password'=>array(
            'type'=>'password',
            'maxlength'=>32,
        ),
        'rememberMe'=>array(
            'type'=>'checkbox',
        )
    ),

    'buttons'=>array(
        'login'=>array(
            'type'=>'submit',
            'label'=>'Login',
        ),
    ),
), $model);
?>